-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foxtrot Rework + Marine Reinforcements #6788
Foxtrot Rework + Marine Reinforcements #6788
Conversation
var/mob/living/carbon/human/mob = new(spawn_loc) | ||
spawning_mind.transfer_to(mob, TRUE) | ||
|
||
if(!leader && HAS_FLAG(mob.client.prefs.toggles_ert, PLAY_LEADER) && check_timelock(mob.client, JOB_SQUAD_LEADER, time_required_for_job && (spawning_mind))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(!leader && HAS_FLAG(mob.client.prefs.toggles_ert, PLAY_LEADER) && check_timelock(mob.client, JOB_SQUAD_LEADER, time_required_for_job && (spawning_mind))) | |
if(!leader && (!spawning_mind || (HAS_FLAG(mob.client.prefs.toggles_ert, PLAY_LEADER) && check_timelock(mob.client, JOB_SQUAD_LEADER, time_required_for_job)))) |
and implement this for all the similar occurrences. Basically if you don't have a mind (a client willing to roll the role), you have no one to check for preferences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
Didnt look through everything, but this should be good enough to start with |
max_engineers = 1 | ||
max_medics = 1 | ||
max_heavies = 0 | ||
/proc/get_marines() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Highly suggesting to make a proper path for this. Right now anything and anywhere in the codebase can call this, does it need to be like that?
e.g.
/datum/emergency_call/cryo_squad/tech/proc/get_marines()
Also move it down below the /datum/emergency_call/cryo_squad/tech/
after the path is given.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add .dm at the end. its just a textfile now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also swap the - with _
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for the folder you created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added .dm and changed it up. anything else?
|
||
/datum/emergency_call/royal_marines/beacon/New() | ||
..() | ||
arrival_message = "[MAIN_SHIP_NAME], this is the HMS Kurtz of the Three World Empires. We've received your call and are enroute to aid." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kurtz is a CBRN ship. Thunderchild is the HMS ship used in cm. You cal call it whatever though.
arrival_message = "[MAIN_SHIP_NAME], this is the HMS Kurtz of the Three World Empires. We've received your call and are enroute to aid." | |
arrival_message = "[MAIN_SHIP_NAME], this is the HMS Thunderchild of the Three World Empires. We've received your call and are enroute to aid." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HMS Patna and HMS Thunderchild are the TWE's ships.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed it up to the HMS Thanes. I want to keep it as a different name than the other two ERT ships so I don't have to add anything to check if a ship name has been taken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The USS Kurtz map can be used for any USCM faction ERT, not just CBRN.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var/pop_scale = 0 | ||
var/count = 0 | ||
|
||
for (var/mob/living/carbon/human/H in GLOB.human_mob_list) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want it to scale with server pop, use GLOB.clients, dont use for loop, just single var with length(GLOB.clients)
if(!SSticker.mode) | ||
to_chat(M, SPAN_WARNING("You can't do this right now!")) | ||
return | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this
name_of_spawn = /obj/effect/landmark/ert_spawns/distress_wo | ||
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point() | ||
|
||
if(!istype(spawn_loc)) return //Didn't find a useable spawn point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no inline ifs
name_of_spawn = /obj/effect/landmark/ert_spawns/distress_wo | ||
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point() | ||
|
||
if(!istype(spawn_loc)) return //Didn't find a useable spawn point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no inline ifs, I know this is copypasted, but that code is also six years old.
name_of_spawn = /obj/effect/landmark/ert_spawns/distress_wo | ||
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point() | ||
|
||
if(!istype(spawn_loc)) return //Didn't find a useable spawn point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
name_of_spawn = /obj/effect/landmark/ert_spawns/distress_wo | ||
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point() | ||
|
||
if(!istype(spawn_loc)) return //Didn't find a useable spawn point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pr seems to be stale, let us know if you want it re-opening, or just make a fresh pr for it |
Marine Reinforcement + Foxtrot Rework
This is a PR that rebalance Foxtrot, making it a one time use, at a higher price, but giving more marines with a pop-scale mechanic.
As well, this adds at the nuke tier an option to call a nerfed ERT team for additional reinforcements.
Explain why it's good for the game
https://hackmd.io/@byte-boxer/BypH9VZd0
Outside of the design doc, we'vemade our rounds longer over the last year, but have progressively nerfed marine respawns. This PR adds more opportunities for the marines to respawn, while ridding the marines of the option to buy more powerful reinforcements.
Testing Photographs and Procedure
Screenshots & Videos
Tested on local. Can manually call ERTs, but everything isn't working yet.
Changelog
🆑 Byte-Boxer
add: Adds Beacon Reinforcements at Tier Four to the techweb. It allows marines to call, at the price of ten points, for nerfed versions of the UPP, VAIPO, Freelancer, and RMC ERT. One time use only.
del: Specialist was removed as a techweb buy, though kept in code incase admins wanted to spawn it.
balance: Foxtrot has gone through a major balance overhaul. It now is a one time use only, and costs more, but has a minimum spawn of 6, and at 100, 110, 120 pop, it gains 2 more members before maxing out at 12. Foxtrot no longer has a side spec that can be bought, but does have an SG.
/:cl:
Current Bugs